package com.zhentao.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.mapper.WmChannelMapper;
import com.zhentao.model.dtos.ResponseResult;
import com.zhentao.model.wemedia.pojo.WmChannel;
import com.zhentao.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WmChannelServiceImpl extends ServiceImpl<WmChannelMapper, WmChannel>
        implements WmChannelService {


    @Autowired
    private WmChannelMapper channelMapper;

    @Override
    public ResponseResult findAll() {
        List<WmChannel> wmChannelList = channelMapper.selectList(null);
        return ResponseResult.okResult(wmChannelList);
    }
}
